package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SysAppRuntime;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SysAppRuntimeProxy extends AbstractProxyEntity<SysAppRuntimeProxy, SysAppRuntime> {

    private static final Class<SysAppRuntime> entityClass = SysAppRuntime.class;

    public static final SysAppRuntimeProxy TABLE = createTable().createEmpty();

    public static SysAppRuntimeProxy createTable() {
        return new SysAppRuntimeProxy();
    }

    public SysAppRuntimeProxy() {
    }

    /**
     * 应用ID
     * {@link SysAppRuntime#getAppId}
     */
    public SQLStringTypeColumn<SysAppRuntimeProxy> appId() {
        return getStringTypeColumn("appId");
    }

    /**
     * {@link SysAppRuntime#getTemplateId}
     */
    public SQLStringTypeColumn<SysAppRuntimeProxy> templateId() {
        return getStringTypeColumn("templateId");
    }

    /**
     * {@link SysAppRuntime#getRuntimeCode}
     */
    public SQLStringTypeColumn<SysAppRuntimeProxy> runtimeCode() {
        return getStringTypeColumn("runtimeCode");
    }

    @Override
    public Class<SysAppRuntime> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SysAppRuntimeProxyFetcher FETCHER = new SysAppRuntimeProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SysAppRuntimeProxyFetcher extends AbstractFetcher<SysAppRuntimeProxy, SysAppRuntime, SysAppRuntimeProxyFetcher> {

        public SysAppRuntimeProxyFetcher(SysAppRuntimeProxy proxy, SysAppRuntimeProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * 应用ID
         * {@link SysAppRuntime#getAppId}
         */
        public SysAppRuntimeProxyFetcher appId() {
            return add(getProxy().appId());
        }

        /**
         * {@link SysAppRuntime#getTemplateId}
         */
        public SysAppRuntimeProxyFetcher templateId() {
            return add(getProxy().templateId());
        }

        /**
         * {@link SysAppRuntime#getRuntimeCode}
         */
        public SysAppRuntimeProxyFetcher runtimeCode() {
            return add(getProxy().runtimeCode());
        }

        @Override
        protected SysAppRuntimeProxyFetcher createFetcher(SysAppRuntimeProxy cp, AbstractFetcher<SysAppRuntimeProxy, SysAppRuntime, SysAppRuntimeProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SysAppRuntimeProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
